﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using VanTaiData;
namespace VanTaiBLL
{
    public class TMCabin_Business
    {
        public static TMCabin_Controller cls = new TMCabin_Controller();
        #region[Get-Data]
        public DataTable BindCabin()
        {
            return cls.BindCabin();
        }
        public DataTable BindCabinDetail(int id)
        {
            return cls.BindCabinDetail(id);
        }
        public DataTable BindCabinCarNo(int id)
        {
            return cls.BindCabinCarNo(id);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool InsertCabin(VanTaiProperty.TMCabin_Property obj)
        {
            return cls.InsertCabin(obj);
        }
        public static bool UpdateCabin(VanTaiProperty.TMCabin_Property obj)
        {
            return cls.UpdateCabin(obj);
        }
        public static bool DeleteCabin(int id)
        {
            cls.DeleteCabin(id);
            return true;
        }
        #endregion

        #region[Search-Fillter]
        public DataTable Search(string keywords)
        {
            return cls.Search(keywords);
        }
        #endregion
    }
}
